<template>
	<view class="careBox">
		<view class="fourModules">
			<view class="fourModules-box" v-for="(item,index) in fourModulesList" :key='index' @click="jump(item)">
				<image :src="item.img" mode=""></image>
				<text>{{item.text}}</text>
			</view>
		</view>
		<view class="shops">
			<view class="shops-title">
				<text>为你推荐</text>
				<text>健康好物优选</text>
			</view>
			<view class="shops-box">
				<view class="box" v-for="(item,index) in shopList" :key='index'>
					<image :src="item.img" mode=""></image>
					<text class="describe">{{item.describe}}</text>
					<view class="price-box">
						<text>{{item.price}}积分</text>
						<image src="../../../static/healthy/add.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				fourModulesList: [{
					text: '入职体检',
					img: require('../../../static/mine/head.png'),
					url:'/myPackageA/index/healthBox/examination'
				}, {
					text: '中老年体检',
					img: require('../../../static/mine/head.png')
				}, {
					text: '女性体检',
					img: require('../../../static/mine/head.png')
				}, {
					text: '父母体检',
					img: require('../../../static/mine/head.png')
				}],
				shopList: [{
					img: require('../../../static/healthy/anmoyi.png'),
					describe: '秋冬季搭配良品贴身好物秋冬秋冬季搭配良品贴身好物秋冬',
					price: '12000'
				},{
					img: require('../../../static/healthy/anmoyi.png'),
					describe: '秋冬季搭配良品贴身好物秋冬秋冬季搭配良品贴身好物秋冬',
					price: '12000'
				},{
					img: require('../../../static/healthy/anmoyi.png'),
					describe: '秋冬季搭配良品贴身好物秋冬秋冬季搭配良品贴身好物秋冬',
					price: '12000'
				},{
					img: require('../../../static/healthy/anmoyi.png'),
					describe: '秋冬季搭配良品贴身好物秋冬秋冬季搭配良品贴身好物秋冬',
					price: '12000'
				},
				]
			}
		},
		methods: {
			jump(item){
				uni.navigateTo({
					url:item.url
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.shops {
		.shops-box {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;

			.box {
				width: 48%;
				height: auto;
				background: #FFFFFF;
				box-shadow: 0px 4rpx 8rpx rgba(0, 0, 0, 0.16);
				opacity: 1;
				border-radius: 10rpx;
				margin-bottom: 34rpx;
				display: flex;
				flex-direction: column;
				padding: 16rpx;

				image {
					width: 286rpx;
					height: 310rpx;
					border-radius: 10rpx;
				}

				.describe {
					padding: 0 10rpx;
					font-size: 20rpx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					line-height: 36rpx;
					color: #333333;
					margin: 15rpx;
				}

				.price-box {
					padding: 0 10rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;

					text {
						font-size: 26rpx;
						font-family: Source Han Sans CN;
						font-weight: bold;
						color: #FF7200;
					}
				}
			}
		}

		.shops-title {
			margin-bottom: 52rpx;
			margin-top: 72rpx;

			text:first-child {
				font-size: 36rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #333333;
				margin-right: 16rpx;
			}

			text:last-child {
				font-size: 24rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #999999;
			}
		}
	}

	.careBox {
		padding: 40rpx;

		.fourModules {
			display: flex;
			justify-content: space-between;

			.fourModules-box {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;

				image {
					width: 120rpx;
					height: 120rpx;
					border-radius: 50%;
				}

				text {
					font-size: 32rpx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: #333333;
				}
			}
		}
	}
</style>
